'use strict';

function get_integer_interval_2(number_a, number_b) {
  var newarr=[];
	if (number_b>number_a) {
		var i=0;
  		while(number_b>=number_a) {
  	    	
        	if(number_a%2==0){
      			newarr[i]=number_a;
      			i++;
      			number_a++;
        	}
        	else{
      			number_a++;
      		}
  		}
	}else if (number_a>number_b) {
		var i=0;
		while(number_a>=number_b) {
      	if(number_a%2==0){
      		newarr[i]=number_a;
      		i++;
      		number_a--;
      	}
      	else{
      		number_a--;
      	}
  		}
	}else if (number_b==number_a&&number_a%2==0) {
		var i=0;
		newarr[i]=number_a;
	}
	return newarr;

}

module.exports = get_integer_interval_2;
